﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace AutomationResearch.Settings
{
    public static class AutoBotSettings
    {
        public static int Duration
        {
            get
            {
                var section = (AutoBotConfigSection)ConfigurationManager.GetSection("AutoBotSettings");
                return int.Parse(section.ExecutionConfigItems[0].Duration); 
            }
            set
            {
                var section = (AutoBotConfigSection)ConfigurationManager.GetSection("AutoBotSettings");
                section.ExecutionConfigItems[0].Duration = value.ToString();
            }
        }
    }
}
